<?php $this->_extends('_layouts/syslist_layout'); ?>

<?php $this->_block('title'); ?> - 行为日志<?php $this->_endblock(); ?>
<?php $this->_block('conpno'); ?><?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started">
		<?php if ($adming!=0): ?>

	   <table>
			<tr><th width="5">　</th><th width="80" align="center">主机组名</th><th>描述</th><th width="80" align="center">创建时间</th><th width="18"><img src="images/icons/acts.png"/></th><th width="18"><img src="images/icons/counts.png"/></th></tr>
			<tr class="tw"><td align="center"></td><td><a href="index.php?action=framework&amp;id=0&amp;control=systemlog&amp;acts=hostlist%7Coutputs">未分组</a></td><td>-</td><td>-</td><td><?php echo $blanklives;?></td><td><?php echo $blankalls;?></td></tr>
			<?php foreach ($group as $s): ?>
			<tr class="<?php if(($countno+1)/2==ceil(($countno+1)/2)){echo 'tw';} ?>"><td align="center"><?php echo $countno++;?></td><td><a href="<?php echo url('default::default/framework', array('id' => $s->id(),'control' => 'systemlog','acts' => 'hostlist|outputs','id' => $s->id())); ?>"><?php echo $s->groupname;?></a></td><td><?php echo $s->description;?></td><td><?php echo $s->datetime;?></td><td><?php if(isset($groupc[$s->id()]['lives']))echo $groupc[$s->id()]['lives'];else echo '0';  ?></td><td><?php if(isset($groupc[$s->id()]))echo $groupc[$s->id()]['hosts'];else echo '0';  ?></td></tr>
			<?php endforeach; ?>
			<tr class="tw">
				<td colspan="9">
					<center>共有 <font color="Red"><?php echo $pager['record_count'];?></font> 条记录,分为 <font color="Red"><?php echo $pager['page_count'];?></font> 页显示,当前第 <font color="Red"><?php echo $pager['current'];?></font>页,每页 <font color="Red"><?php echo $pager['page_size'];?></font> 条<?php echo $pagestr; ?></center>
				</td>
			</tr>
		</table>

		<?php else: ?>
	
	<center><h2>暂无可管理主机组。</h2></center>
	
		<?php endif; ?>

	</div>

<?php $this->_endblock('contents'); ?>